package com.cskaoyan.bean.wx.llk;

import lombok.Data;

import java.util.List;

@Data
public class WxCollectVO<T> {

    /**
     * totalPages : 1
     * collectList : [{"brief":"安心舒适是最好的礼物","picUrl":"http://yanxuan.nosdn.127.net/1f67b1970ee20fd572b7202da0ff705d.png","valueId":1181000,"name":"母亲节礼物-舒适安睡组合","id":65,"type":0,"retailPrice":2598},{"brief":"吸汗、舒适、弹性、防护、耐用","picUrl":"http://yanxuan.nosdn.127.net/203cb83d93606865e3ddde57b69b9e9a.png","valueId":1152008,"name":"魔兽世界 部落 护腕 一只","id":6,"type":0,"retailPrice":29}]
     */

    private int totalPages;
    private List<T> collectList;

    public static <T> WxCollectVO data(List<T> items, int totalPages){
        WxCollectVO itemsBean = new WxCollectVO();
        itemsBean.setCollectList(items);
        itemsBean.setTotalPages(totalPages);
        return itemsBean;
    }

}
